home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 40 / Amiga Format CD40 (1999-05-11)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-06].iso / -seriously_amiga- / misc / blankpurge / blankpurge.text < prev    next >
Text File  |  1999-03-29  |  2KB  |  69 lines

  1. Short:    Strips blank lines from Amiga text files
  2. Author:   simon@studio.woden.com
  3. Uploader: simon@studio.woden.com
  4. Version:  1.2
  5. Type:     text/misc
  6.  
  7. Blank Line Purger by Simon N Goodwin, February 1999.
  8.  
  9. WHAT?
  10.  
  11. A program to scan a text file and remove blank lines.
  12.  
  13. WHY?
  14.  
  15. To save paper when printing, or to clean up after
  16. editing operations that use search and replace to
  17. remove content from lines, but cannot remove the
  18. end of line markers themselves (why I wrote it).
  19.  
  20. REQUIREMENTS
  21.  
  22. Requires ASL library. Source is in HiSoft BASIC.
  23. Uses 15 point Helvetica.font if it's available.
  24.  
  25. USAGE
  26.  
  27. Start from Workbench by clicking on the icon.
  28. Select a file to be scanned or CANCEL to quit.
  29. Repeat selection for each file to be purged.
  30.  
  31. NOTES
  32.  
  33. The input file is not modified. A new file on the
  34. same path with the suffix ".purged" is created
  35. containing the original contents except with the
  36. blank lines removed.
  37.  
  38. KNOWN BUGS
  39.  
  40. Does not check that the output file name is valid.
  41.  
  42. HISTORY
  43.  
  44. Written as one small part of the V68K project...
  45. Uploaded to Aminet in case someone else finds it
  46. useful.
  47.  
  48. FUTURE
  49.  
  50. Could be extended to skip lines with no semantic
  51. content - e.g. containing only spaces or tabs,
  52. or empty comment lines (white space optionally
  53. either side of a REM, * or ; null line comment)
  54.  
  55. Might also strip redundant CHR$(13)s, though
  56. that's easily done with Frank Swift's CRLF tool.
  57.  
  58. Progress display? Tricky without a prior scan.
  59.  
  60. STATUS
  61.  
  62. Freely distributable but you must include source.
  63. The author is eager to hear from anyone who finds
  64. this handy. :-)
  65.  
  66. AUTHOR
  67.  
  68. Simon N Goodwin, simon@studio.woden.com
  69.